
export var flag = function (state = [], action: any) {
    var newstate = JSON.parse(JSON.stringify(state))
    if (action.type == "SAVE_Flag") {
        newstate = action.payload
        return newstate
    } else {
        return state
    }
}